package com.ikingtech.platform.service.application.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ikingtech.framework.sdk.data.entity.SortEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhang qiang
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("application_model_field")
public class ApplicationModelFieldDO extends SortEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -5254517300053465401L;

    @TableField("tenant_code")
    private String tenantCode;

    @TableField("model_id")
    private String modelId;

    @TableField("name")
    private String name;

    @TableField("type")
    private String type;

    @TableField("generic_type")
    private String genericType;

    @TableField("remark")
    private String remark;

    @TableField("db_table_field")
    private Boolean dbTableField;

    @TableField("length")
    private String length;

    @TableField("db_table_field_type")
    private String dbTableFieldType;

    @TableField("nullable")
    private Boolean nullable;

    @TableField("query_field")
    private Boolean queryField;

    @TableField("compare_type")
    private String compareType;

    @TableField("sync_with_datasource")
    private Boolean syncWithDatasource;
}
